﻿using System.ComponentModel;
using System.Windows.Forms;

namespace Marmat.Forms
{
    public class RequiredComponentVerifyEventArgs : CancelEventArgs
    {
        internal Control _control;

        public RequiredComponentVerifyEventArgs(Control control)
        {
            this._control = control;
        }
        /// <summary>
    /// 返回触发验证的控件。
    /// </summary>
    /// <returns></returns>
        public Control Control
        {
            get
            {
                return this._control;
            }
        }

        /// <summary>
    /// 描述错误的消息
    /// </summary>
    /// <returns></returns>
        public string Message { get; set; }
    }
}